﻿<UserControl x:Class="EmployeeTracker.View.DepartmentDetailView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="90">
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />

        </Grid.RowDefinitions>

        <TextBlock Grid.Column="0" Grid.Row="0" Text="Name:" />
        <TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Path=DepartmentName}" Width="150" />

        <TextBlock Grid.Column="0" Grid.Row="1" Text="Last Audit:" />
        <DatePicker Grid.Column="1" Grid.Row="1" SelectedDate="{Binding Path=LastAudited}" />

        <TextBlock Grid.Column="0" Grid.Row="2" Text="Code:" />
        <TextBox Grid.Column="1" Grid.Row="2" Height="23" Text="{Binding Path=DepartmentCode}" Width="100" />
    </Grid>
</UserControl>
